package com.treasure.infrastructure.repository.extraction.vector;

import com.alibaba.dashscope.exception.NoApiKeyException;
import com.treasure.common.model.UploadDocumentRequest;
import com.treasure.infrastructure.model.doc.SegmentVectorDocBean;

import java.util.List;

/**
 * @author sunhongmin
 * @date 2023/8/25 20:01
 * @description
 */
public interface SegmentVectorDocRepository {
    void indexVector(List<SegmentVectorDocBean> docSegmentList, UploadDocumentRequest uploadDocumentRequest) throws NoApiKeyException;

    List<SegmentVectorDocBean> searchByVector(String corpId, String question) throws NoApiKeyException;
}
